﻿namespace Deixei.Domain
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Infrastructure;
    using System.Web.Mvc;
    using Deixei.Infrastructure;
    using WebMatrix.WebData;

    public partial class DataContext : DbContext
    {
        public DataContext()
            : base("name=DefaultConnection")
        {
            //this.Configuration.ProxyCreationEnabled = false;
            //this.Configuration.LazyLoadingEnabled = true;

        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {

            base.OnModelCreating(modelBuilder);
        }

        public DbSet<User> Users
        {
            get;
            set;
        }
        public DbSet<Role> Roles
        {
            get;
            set;
        }

        //// User Membership
        //public DbSet<UserProfile> UserProfiles
        //{
        //    get;
        //    set;
        //}

        public DbSet<BaseEntityType> BaseEntitiesType
        {
            get;
            set;
        }

        public DbSet<OAuthMembership> OAuthMemberships
        {
            get;
            set;
        }


        public DbSet<OAuthToken> OAuthTokens
        {
            get;
            set;
        }


        public DbSet<Product> Products
        {
            get;
            set;
        }

        public DbSet<Vendor> Vendors
        {
            get;
            set;
        }

        public DbSet<Ingredient> Ingredients
        {
            get;
            set;
        }

        public DbSet<Supplier> Suppliers
        {
            get;
            set;
        }

        public DbSet<ActionLog> ActionLogs
        {
            get;
            set;
        }

    }
}
